//
//  IOARequest.h
//  IOAMall
//
//  Created by Mac on 2018/1/31.
//  Copyright © 2018年 Mac. All rights reserved.
//

#import <YTKNetwork.h>

@interface IOARequest : YTKRequest

// 服务端返回状态码
@property (nonatomic, readonly, assign) NSInteger serverResponseStatusCode;

// 接口返回状态码，其中: 1002 登录过期; 1004 请求错误; 0 正常; 1007 未实名认证
@property (nonatomic, readonly, assign) NSInteger serverRequestStatusCode;

// 提示信息
@property (nonatomic, readonly, copy) NSString *serverResponseMessage;

// 返回数据
@property (nonatomic, readonly, strong, nullable) id responseObj;

// 外部参数
@property (nonatomic, strong) NSMutableDictionary *outerParameters;

// 如果没有网络 failure同步方式返回
- (void)startWithCompletionBlockWithSuccess:(YTKRequestCompletionBlock)success
                                    failure:(YTKRequestCompletionBlock)failure;



@end
